package org.dromara.business.domain.bo;

import org.dromara.business.domain.VideoDanmaku;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 视频弹幕业务对象 t_video_danmaku
 *
 * @author Hao Tong Xue
 * @date 2025-04-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = VideoDanmaku.class, reverseConvertGenerate = false)
public class VideoDanmakuBo extends BaseEntity {

    /**
     * 弹幕 ID
     */
    @NotNull(message = "弹幕 ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 视频 ID
     */
    @NotNull(message = "视频 ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long videoId;

    /**
     * 弹幕内容
     */
    @NotBlank(message = "弹幕内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 弹幕颜色
     */
    private String color;

    /**
     * 弹幕出现时间点(秒)
     */
    @NotNull(message = "弹幕出现时间点(秒)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer videoTime;

    /**
     * 弹幕显示模式，top顶部居中，bottom底部居中，scroll滚动，默认为scroll
     */
    private String contentPosition;

    /**
     * 字体大小
     */
    private String fontSize;

    /**
     * 备注
     */
    private String remark;


}
